//
//  WWModel.m
//  WWCollectionView
//
//  Created by WeiWei on 15/11/3.
//  Copyright © 2015年 WeiWei. All rights reserved.
//

#import "WWModel.h"

@implementation WWModel

+ (instancetype)wwModelWithDictionary:(NSDictionary *)dic
{
    WWModel *model = [[WWModel alloc] init];
    [model setValuesForKeysWithDictionary:dic];
    return model;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        _caretortId = [value integerValue];
    }
    
    }

@end
